
package com.bk.dao;

import java.sql.SQLException;
import java.util.List;

import com.bk.model.User;

public interface UserDao {
	
	//增加
	public  int  add(String sql,Object...params) throws SQLException ;
	//删除
	public int delete(int uid);
	//修改
	public int update(String sql,Object...params) throws SQLException;
	//根据id查询
	public User findById(int uid);
	//自定义条件
	public List<User> findByOthers(String sql,Object...params) throws SQLException;
	//根据用户名查询
	public User findByName(String uname) throws SQLException;
	//查询所有
	public List<User> findAll();
}

	